import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission

import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "./common/ruoyi.js";
import {getBaseUrl } from "@/common/environment.js";

import uView from "uview-ui";
Vue.use(uView);
uni.$u.config.unit = 'px'
Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store
import noData from "@/components/noData.vue"
Vue.component('noData', noData)
// 全局方法挂载
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree
Vue.prototype.getBaseUrl = getBaseUrl  // 判断环境获取基础地址

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
